package concurrent.chapter5;
//15讲、单线程执行设计模式，有一个门，始终只能一个人通过
public class Client {
    public static void main(String[] args) {
        Gate gate = new Gate();
        User bj = new User("Baobao", "BeiJing", gate);
        User sh = new User("ShangLao", "ShangHai", gate);
        User gz = new User("GuangLao", "GuangZhou", gate);
        bj.start();
        sh.start();
        gz.start();
    }
}
